home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / autoit / autoit-v3.2.0.1-setup.exe / Examples / Helpfile / GUICtrlDelete.au3 < prev    next >
Text File  |  2006-06-17  |  394b  |  17 lines

  1. #include <GUIConstants.au3>
  2.  
  3. GUICreate ( "My GUI delete control", 200,200,800,200)
  4. $date=GUICtrlCreateDate ("1953/04/25", 10,10,185,20 )
  5. $del=GUICtrlCreateButton("Delete control", 50,50,70,20 )
  6. GUISetState ()
  7.  
  8. ; Run the GUI until the dialog is closed
  9. Do
  10.     $msg = GUIGetMsg()
  11.     if $msg = $del then
  12.         GUICtrlDelete($date)
  13.         GUICtrlDelete($del)
  14.     endif
  15. Until $msg = $GUI_EVENT_CLOSE
  16.  
  17.